package com.party.core.model.serviceguide;

/**
 * @program: party
 * @description: 服务指南和类型关系
 * @author: Hua Qunhao
 * @create: 2019-04-16 18:14
 **/
public class ServiceGuideRelation {
    private String id;
    //服务指南Id
    private String sgId;
    //服务指南类型Id
    private String sgtId;

    public ServiceGuideRelation() {
    }

    public ServiceGuideRelation(String sgId, String sgtId) {
        this.sgId = sgId;
        this.sgtId = sgtId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSgId() {
        return sgId;
    }

    public void setSgId(String sgId) {
        this.sgId = sgId;
    }

    public String getSgtId() {
        return sgtId;
    }

    public void setSgtId(String sgtId) {
        this.sgtId = sgtId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ServiceGuideRelation)) return false;

        ServiceGuideRelation that = (ServiceGuideRelation) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (sgId != null ? !sgId.equals(that.sgId) : that.sgId != null) return false;
        return sgtId != null ? sgtId.equals(that.sgtId) : that.sgtId == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (sgId != null ? sgId.hashCode() : 0);
        result = 31 * result + (sgtId != null ? sgtId.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "ServiceGuideRelation{" +
                "id='" + id + '\'' +
                ", sgId='" + sgId + '\'' +
                ", sgtId='" + sgtId + '\'' +
                '}';
    }
}
